Skip to content

Add warning to only load trusted models#53999

Merged
gewarren merged 2 commits into
mainfrom
svick-model-loading-note
May 24, 2026
Merged

Add warning to only load trusted models#53999
gewarren merged 2 commits into
mainfrom
svick-model-loading-note

Conversation

@svick
Copy link
Copy Markdown
Member

@svick svick commented May 22, 2026

ML.NET assumes that loaded models are trusted. We should explicitly document this assumption and warn users not to load untrusted models.

Companion PR to change API docs: dotnet/machinelearning#7611


Internal previews

📄 File 🔗 Preview link
docs/machine-learning/how-to-guides/save-load-machine-learning-models-ml-net.md Save and load trained models

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a security warning to the ML.NET “save and load trained models” guide to remind readers to load model files only from trusted sources.

Changes:

  • Adds an [!IMPORTANT] admonition under “Load a model stored locally” warning about the security risks of loading untrusted models.

Comment thread docs/machine-learning/how-to-guides/save-load-machine-learning-models-ml-net.md Outdated
@gewarren gewarren merged commit 387e0e4 into main May 24, 2026
11 checks passed
@gewarren gewarren deleted the svick-model-loading-note branch May 24, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants